import request from '@/utils/request'

// 保存视图视点
export function saveBimView(param) {
  return request({
    url: 'rest/bimView/save',
    method: 'post',
    data: param
  })
}

// 删除视图
export function deleteView(param) {
  return request({
    url: 'rest/bimView/delete',
    method: 'post',
    data: param
  })
}

// 保存视图视口
export function saveBimViewPoint(param) {
  return request({
    url: 'rest/bimViewpoint/save',
    method: 'post',
    data: param
  })
}

// 删除视口
export function deleteViewPoint(param) {
  return request({
    url: 'rest/bimViewpoint/delete',
    method: 'post',
    data: param
  })
}

// 获取视口
export function getViewPoint(param) {
  return request({
    url: 'rest/bimViewpoint/get',
    method: 'post',
    data: param
  })
}

// 视图列表
export function getBimViewList(param) {
  return request({
    url: 'rest/bimView/list',
    method: 'post',
    data: param
  })
}

// 成果审查列表
export function getCheckList(param) {
  return request({
    url: 'rest/dbsExm/formList',
    method: 'post',
    data: param
  })
}

// 创建审查单
export function createCheckForm(param) {
  return request({
    url: 'rest/dbsExm/createForm',
    method: 'post',
    data: param
  })
}

// 选择模型列表
export function getAttachList(param) {
  return request({
    url: 'rest/dbsExm/attachList',
    method: 'post',
    data: param
  })
}

// 获取审查表详情
export function getFormDetail(param) {
  return request({
    url: 'rest/dbsExm/getForm',
    method: 'post',
    data: param
  })
}

// 创建问题
export function saveForm(param) {
  return request({
    url: 'rest/dbsExm/saveForm',
    method: 'post',
    data: param
  })
}

// 单个资源关联至多个实体,如一个视图（BimView）同时关联至项目和工点上
export function saveAssetBind(param) {
  return request({
    url: 'rest/asset/saveAssetBind',
    method: 'post',
    data: param
  })
}

// 获取单个视图
export function getView(param) {
  return request({
    url: 'rest/bimView/get',
    method: 'post',
    data: param
  })
}

// 获取关联视图列表，**这里的remark做linkType用
export function queryBimViews(param) {
  return request({
    url: 'rest/bimView/queryBimViews',
    method: 'post',
    data: param
  })
}

// 获取关联视点列表，**这里的remark做linkType用
export function queryBimViewpoints(param) {
  return request({
    url: 'rest/bimViewpoint/queryBimViewpoints',
    method: 'post',
    data: param
  })
}

// 查询项目所有工点的默认视图清单
export function workPointViews(param) {
  return request({
    url: 'rest/bim/workPointViews',
    method: 'post',
    data: param
  })
}

// 保存标注点
export function getBimPointList(param) {
  return request({
    url: 'rest/bimPoint/list',
    method: 'post',
    data: param
  })
}

// 保存标注点
export function saveBimPoint(param) {
  return request({
    url: 'rest/bimPoint/save',
    method: 'post',
    data: param
  })
}

// 根据单个业务类型及业务id列表批量获取标签
export function bizBatchList(param) {
  return request({
    url: 'rest/bimPoint/bizBatchList',
    method: 'post',
    data: param
  })
}

// 获取标注点
export function getBimPoint(param) {
  return request({
    url: 'rest/bimPoint/get',
    method: 'post',
    data: param
  })
}

// 保存漫游
export function saveBimPath(param) {
  return request({
    url: 'rest/bimPath/save',
    method: 'post',
    data: param
  })
}

export function deleteBimPath(param) {
  return request({
    url: 'rest/bimPath/delete',
    method: 'post',
    data: param
  })
}

export function queryBimPaths(param) {
  return request({
    url: 'rest/bimPath/queryBimPaths',
    method: 'post',
    data: param
  })
}

// 风险源
export function riskPointList(param) {
  return request({
    url: 'rest/riskPoint/list',
    method: 'post',
    data: param
  })
}

// 删除标注
export function deletePoint(param) {
  return request({
    url: 'rest/bimPoint/delete',
    method: 'post',
    data: param
  })
}
